﻿<%@ Page Title="" EnableEventValidation="true" Language="vb" AutoEventWireup="false" MasterPageFile="~/Master/OutSite.Master" CodeBehind="ProductDetail.aspx.vb" Inherits="Core.ProductDetail1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
<div id="fb-root"></div>
<script>    (function (d, s, id) {
        var js, fjs = d.getElementsByTagName(s)[0];
        if (d.getElementById(id)) return;
        js = d.createElement(s); js.id = id;
        js.src = "//connect.facebook.net/en_US/all.js#xfbml=1";
        fjs.parentNode.insertBefore(js, fjs);
    } (document, 'script', 'facebook-jssdk'));</script>
<!-- BEGIN SLIDE PRODUCT -->
<script>
	$(function () {
		$('#products').slides({
		    preload: true,
		    play: 2000,
		    pause: 2500,
		    hoverPause: true,
			preloadImage: '/static/outSite/images/Slide/loading.gif',
			effect: 'slide, fade',
			crossfade: true,
			slideSpeed: 350,
			fadeSpeed: 500,
			generateNextPrev: false,
			generatePagination: false
		});
});

function addCart(id, name, img, price) {
    $.ajax({
        url: "/ajaxSendCart.aspx?id=" + id + "&name=" + name + "&img=" + img + "&price=" + price,
        context: document.body,
        success: function (data) {
            $().toastmessage('showSuccessToast', "Đã thêm sản phẩm vào giỏ hàng!");
        }
    });
}

</script>
<!-- Ativando o jQuery lightBox plugin -->
<script type="text/javascript">
	$(function () {
	    $('#ContentPlaceHolder1_gallery a').lightBox();
	});
</script>
<div id="container" style="padding-left:0px;width: 335px;margin:0px;float: left;">
	<div id="products_example">
		<div id="products">
			<div class="slides_container" id="gallery" runat="server">
				
			</div>
			<ul class="pagination" id="pagination" runat="server">
				
			</ul>
		</div>
	</div>
</div>
<div id="subcomment"></div>
<div class="proInfo">
	<p class="detailProTitle" id="detailTitle" runat="server"></p>
	<p class="detailProStock">Trạng thái: <asp:Label ID="lblIsStock" runat="server" Text=""></asp:Label></p>
	<p class="detailProPrice">Giá: <asp:Label ID="lblNewPrice" runat="server" Text=""></asp:Label> VND</p>
	<div id="divShowCart" runat="server"></div>
    <div class="detail_fb">
        <div class="fb-like" data-href="<%=HttpContext.Current.Request.Url.AbsoluteUri %>" data-width="200" data-show-faces="true"></div>
    </div>
    <div class="notice" id="detailPromo" runat="server">
        <div class="noticeContent">
            <img src="/static/outSite/images/khuyenmai.gif" alt=""><br>
            <div id="detailPromoContent" runat="server"></div>
        </div>
    </div>
</div>
<div class="proDesc" id="descContent" runat="server">
</div>
<div class="proInfoDetail" id="detailContent" runat="server">
</div>
<div class="cmFb" id="cmFb" runat="server">
</div>

<!-- BOX ORTHER PRO -->
<div class="boxPro">
	<div class="boxNew_header">Sản phẩm khác</div>

    <asp:Repeater ID="rpItems" runat="server">
        <HeaderTemplate>
            <ul class="boxPro_ul">
        </HeaderTemplate>
        <ItemTemplate>
                <li>
			        <div class="boxPro_img">
				        <a href="<%#buildLinkDetailPro(Eval("cateURI"), Eval("itemURI"), Eval("ProID"))%>" title="<%# Eval("ProName") %>"><img src='<%#buildImage(Eval("ProDate"), Eval("ProImage2"))%>' alt='<%# Eval("ProName") %>'></a>
			        </div>
			        <table class="boxProInfo">
				        <tr>
					        <td><a class="boxPro_title tdTitle" href='<%#buildLinkDetailPro(Eval("cateURI"), Eval("itemURI"), Eval("ProID"))%>' title='<%# Eval("ProName") %>'><%# Eval("ProName") %></a></td>
					        <td rowspan="2">
                                <asp:Literal ID="btnAjax" runat="server" Text='<%#buildButtonAjax(Eval("ProID"), Eval("ProName"), Eval("ProDate"), Eval("ProImage2"), Eval("ProNewPrice"), Eval("ProIsStock"))%>'></asp:Literal>
                            </td>
				        </tr>
				        <tr>
					        <td class="boxPrice">Giá: <span class="boxProPrice"><%# Eval("ProNewPrice") %> VND</span></td>
				        </tr>
			        </table>
		        </li>
        </ItemTemplate>
        <FooterTemplate>
                </ul>         
        </FooterTemplate>
    </asp:Repeater>
</div>	
<!-- END ALL BOX -->
</asp:Content>
